package com.ruoyi.system.enums;

import com.google.common.collect.Lists;

import java.util.List;

/**
 * 物料相关枚举
 */
public enum MaterialEnum {


    B_INW_BATCH_PSN(1,"09/psn"),

    B_INW_BATCH_SN(2,"sn");


    Integer code;
    String desc;


    MaterialEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static List<String> getAllType() {
        List<String> typeList = Lists.newArrayList();
        for (MaterialEnum c : MaterialEnum.values()) {
            typeList.add(c.getDesc());
        }
        return typeList;
    }
}
